package me.stephenj.experiment2.model;

import java.util.ArrayList;
import java.util.List;

/**
 * @Title PhoneNrs.java
 * @Description PhoneNrs类
 * @author 张润天
 * @Time 2020/4/21 10:43
 * @version v0.01
 */

public class PhoneNrs {
    /**
     * @ClassName PhoneNrs.java
     * @Description PhoneNrs类
     * @Field ID: 电话组编号
     * @Field PhoneNrID*: 电话号码编号
     */
    private int ID;
    private int PhoneNrIDA;
    private int PhoneNrIDB;
    private int PhoneNrIDC;
    private int PhoneNrIDD;

    public PhoneNrs() {
    }

    public List<Integer> getList() {
        List<Integer> phoneNrsIDs = new ArrayList<>();
        if (this.PhoneNrIDA != 0) {
            phoneNrsIDs.add(this.PhoneNrIDA);
        }
        if (this.PhoneNrIDB != 0) {
            phoneNrsIDs.add(this.PhoneNrIDB);
        }
        if (this.PhoneNrIDC != 0) {
            phoneNrsIDs.add(this.PhoneNrIDC);
        }
        if (this.PhoneNrIDD != 0) {
            phoneNrsIDs.add(this.PhoneNrIDD);
        }
        return phoneNrsIDs;
    }

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public int getPhoneNrIDA() {
        return PhoneNrIDA;
    }

    public void setPhoneNrIDA(int phoneNrIDA) {
        PhoneNrIDA = phoneNrIDA;
    }

    public int getPhoneNrIDB() {
        return PhoneNrIDB;
    }

    public void setPhoneNrIDB(int phoneNrIDB) {
        PhoneNrIDB = phoneNrIDB;
    }

    public int getPhoneNrIDC() {
        return PhoneNrIDC;
    }

    public void setPhoneNrIDC(int phoneNrIDC) {
        PhoneNrIDC = phoneNrIDC;
    }

    public int getPhoneNrIDD() {
        return PhoneNrIDD;
    }

    public void setPhoneNrIDD(int phoneNrIDD) {
        PhoneNrIDD = phoneNrIDD;
    }
}
